<template>
  <div>
    <el-form :model="formData" :inline="true" label-width="auto">
      
      <el-form-item
        label="id"
        prop="id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="id"
          style="width: 120px"
          v-model="formData['id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="name"
        prop="name"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="name"
          style="width: 120px"
          v-model="formData['name']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="star_acc_id"
        prop="star_acc_id"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="star_acc_id"
          style="width: 120px"
          v-model="formData['star_acc_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="platform"
        prop="platform"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="platform"
          style="width: 120px"
          v-model="formData['platform']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="platform_id"
        prop="platform_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="platform_id"
          style="width: 120px"
          v-model="formData['platform_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="cyberstar_type"
        prop="cyberstar_type"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="cyberstar_type"
          style="width: 120px"
          v-model="formData['cyberstar_type']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="agent_user"
        prop="agent_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="agent_user"
          style="width: 120px"
          v-model="formData['agent_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="agent_user_id"
        prop="agent_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="agent_user_id"
          style="width: 120px"
          v-model="formData['agent_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="account_link"
        prop="account_link"
        data-type="varchar(255)"
      >
        
        <el-input
          placeholder="account_link"
          style="width: 120px"
          v-model="formData['account_link']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="weixin_account"
        prop="weixin_account"
        data-type="varchar(100)"
      >
        
        <el-input
          placeholder="weixin_account"
          style="width: 120px"
          v-model="formData['weixin_account']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="fans_num"
        prop="fans_num"
        data-type="int"
      >
        
        <el-input
          placeholder="fans_num"
          style="width: 120px"
          v-model="formData['fans_num']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="evaluate_self"
        prop="evaluate_self"
        data-type="varchar(20)"
      >
        
        <el-input
          placeholder="evaluate_self"
          style="width: 120px"
          v-model="formData['evaluate_self']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="evaluate_other"
        prop="evaluate_other"
        data-type="varchar(20)"
      >
        
        <el-input
          placeholder="evaluate_other"
          style="width: 120px"
          v-model="formData['evaluate_other']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="progress"
        prop="progress"
        data-type="int"
      >
        
        <el-input
          placeholder="progress"
          style="width: 120px"
          v-model="formData['progress']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="province"
        prop="province"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="province"
          style="width: 120px"
          v-model="formData['province']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="city"
        prop="city"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="city"
          style="width: 120px"
          v-model="formData['city']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="ares"
        prop="ares"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="ares"
          style="width: 120px"
          v-model="formData['ares']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="address"
        prop="address"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="address"
          style="width: 120px"
          v-model="formData['address']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="digger_time"
        prop="digger_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="digger_time"
          style="width: 120px"
          v-model="formData['digger_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="weixin_time"
        prop="weixin_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="weixin_time"
          style="width: 120px"
          v-model="formData['weixin_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="last_follow_time"
        prop="last_follow_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="last_follow_time"
          style="width: 120px"
          v-model="formData['last_follow_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="check_apply_time"
        prop="check_apply_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="check_apply_time"
          style="width: 120px"
          v-model="formData['check_apply_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="check_apply_user"
        prop="check_apply_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="check_apply_user"
          style="width: 120px"
          v-model="formData['check_apply_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="check_apply_user_id"
        prop="check_apply_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="check_apply_user_id"
          style="width: 120px"
          v-model="formData['check_apply_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="face_time"
        prop="face_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="face_time"
          style="width: 120px"
          v-model="formData['face_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="contract_time"
        prop="contract_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="contract_time"
          style="width: 120px"
          v-model="formData['contract_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="over_time"
        prop="over_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="over_time"
          style="width: 120px"
          v-model="formData['over_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="expire_time"
        prop="expire_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="expire_time"
          style="width: 120px"
          v-model="formData['expire_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="over_reson"
        prop="over_reson"
        data-type="varchar(255)"
      >
        
        <el-input
          placeholder="over_reson"
          style="width: 120px"
          v-model="formData['over_reson']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="import_level"
        prop="import_level"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="import_level"
          style="width: 120px"
          v-model="formData['import_level']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="level_next_time"
        prop="level_next_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="level_next_time"
          style="width: 120px"
          v-model="formData['level_next_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="top_state"
        prop="top_state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="top_state"
          style="width: 120px"
          v-model="formData['top_state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="face_state"
        prop="face_state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="face_state"
          style="width: 120px"
          v-model="formData['face_state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="exploit_state"
        prop="exploit_state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="exploit_state"
          style="width: 120px"
          v-model="formData['exploit_state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="star_celebrity"
        prop="star_celebrity"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="star_celebrity"
          style="width: 120px"
          v-model="formData['star_celebrity']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="state"
        prop="state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="state"
          style="width: 120px"
          v-model="formData['state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="tenant_type"
        prop="tenant_type"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="tenant_type"
          style="width: 120px"
          v-model="formData['tenant_type']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="tenant_id"
        prop="tenant_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="tenant_id"
          style="width: 120px"
          v-model="formData['tenant_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="del_state"
        prop="del_state"
        data-type="tinyint"
      >
        
        <el-input
          placeholder="del_state"
          style="width: 120px"
          v-model="formData['del_state']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_user"
        prop="add_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="add_user"
          style="width: 120px"
          v-model="formData['add_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_user_id"
        prop="add_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="add_user_id"
          style="width: 120px"
          v-model="formData['add_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="add_time"
        prop="add_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="add_time"
          style="width: 120px"
          v-model="formData['add_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="edit_user"
        prop="edit_user"
        data-type="varchar(50)"
      >
        
        <el-input
          placeholder="edit_user"
          style="width: 120px"
          v-model="formData['edit_user']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="edit_user_id"
        prop="edit_user_id"
        data-type="bigint"
      >
        
        <el-input
          placeholder="edit_user_id"
          style="width: 120px"
          v-model="formData['edit_user_id']"
        ></el-input>
        
      </el-form-item>
      
      <el-form-item
        label="last_edit_time"
        prop="last_edit_time"
        data-type="datetime"
      >
        
        <erp-date-picker
          placeholder="last_edit_time"
          style="width: 120px"
          v-model="formData['last_edit_time']"
          value-format="YYYY-MM-DD HH:mm:ss"
          format="YYYY-MM-DD HH:mm:ss"
        ></erp-date-picker>
        
      </el-form-item>
      
      <el-form-item
        label="server_number"
        prop="server_number"
        data-type="smallint"
      >
        
        <el-input
          placeholder="server_number"
          style="width: 120px"
          v-model="formData['server_number']"
        ></el-input>
        
      </el-form-item>
      
    </el-form>
  </div>
</template>
<script>
  import { dateFormatYYYYMMDDHHmmss, isIOS } from '@/utils'
  import { alertWithPaylod } from '@/utils/alertUtils';

import axios from "axios";
export default {
  data() {
    return {
      formData: {},
    };
  },
  methods: {
    initByDialog(_data) {
      if (_data && _data.id) {

        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
            _data['digger_time']=dateFormatYYYYMMDDHHmmss(_data['digger_time'])
           
        
           
            _data['weixin_time']=dateFormatYYYYMMDDHHmmss(_data['weixin_time'])
           
        
           
            _data['last_follow_time']=dateFormatYYYYMMDDHHmmss(_data['last_follow_time'])
           
        
           
            _data['check_apply_time']=dateFormatYYYYMMDDHHmmss(_data['check_apply_time'])
           
        
           
        
           
        
           
            _data['face_time']=dateFormatYYYYMMDDHHmmss(_data['face_time'])
           
        
           
            _data['contract_time']=dateFormatYYYYMMDDHHmmss(_data['contract_time'])
           
        
           
            _data['over_time']=dateFormatYYYYMMDDHHmmss(_data['over_time'])
           
        
           
            _data['expire_time']=dateFormatYYYYMMDDHHmmss(_data['expire_time'])
           
        
           
        
           
        
           
            _data['level_next_time']=dateFormatYYYYMMDDHHmmss(_data['level_next_time'])
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
            _data['add_time']=dateFormatYYYYMMDDHHmmss(_data['add_time'])
           
        
           
        
           
        
           
            _data['last_edit_time']=dateFormatYYYYMMDDHHmmss(_data['last_edit_time'])
           
        
           
        


        this.formData = _data;
      }
    },
    async submitByDialog() {
      var params = this.formData;
      var resylt = await axios
        .post("/api/erp_cyberstar/apis", {
          _name: "addorupdate",
          ...params,
        })
        .then((res) => res.data);
      console.log("resylt :", resylt);
      alertWithPaylod(resylt)

      return resylt;
    },
  },
};
</script>
